package com.lecyon.farm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 已完成同步的记录
 *
 * @author YaoZheng
 * @since 2020-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("已完成同步的记录")
public class FmAlreadySyncRecords extends Model<FmAlreadySyncRecords> {

    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "源表id")
    private String sourceId;

    @ApiModelProperty(value = "源表名")
    private String sourceTableName;

    @ApiModelProperty(value = "使用的方法名")
    private String methodName;

    @ApiModelProperty(name = "crt_time", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime crtTime;

    @ApiModelProperty(name = "upd_time", value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updTime;

    @ApiModelProperty(name = "del_flag", value = "删除标记")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private String userToken;

}
